package com.example.ssmdemo.service;

import com.example.ssmdemo.common.Userinfo;
import com.example.ssmdemo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;
    public Userinfo getUserById(int id){
        return userMapper.getUserById(id);
    }
}
